/*
 * @author hoang.pt
 * @version $Id: Hw1.java 126 2010-09-01 06:45:15Z phantichhoang $
 */

package homework.homework1;

/**
 * Entity Thread1
 * @author hoang.pt
 */
class Thread1 extends Thread {

    /**
     * constructor
     */
    public Thread1() {
    }

    /**
     * Run method
     * @author hoang.pt
     */
    @Override
    public void run() {
        //super.run();
        System.out.println("*");
    }
}



/**
 * Runnable1
 * @author hoang.pt
 */
class Runnable1 implements Runnable {
    /**
     * constructor
     */
    public Runnable1() {
    }

    /**
     * override interface
     * @author hoang.pt
     */
    public void run() {

        System.out.println("@");
    }

}


/**
 * Main pro
 * @author hoang.pt
 */
public class Hw1 {

    /**
     * constructor
     */
    public Hw1() {
        //init t1
        Thread1 t1 = new Thread1();
        t1.start();

        //init t2
        Runnable1 r = new Runnable1();
        Thread t2 = new Thread(r);
        t2.start();

    }

    /**
     * Main program
     * @param args
     */
    public static void main(String[] args) {
        new Hw1();

    }

}
